package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {

    void add(Member member);

    Member findByTelephone(String telephone);

    Integer findMemberCountBeforeDate(String date);

    Integer findMemberCountByDate(String date);

    Integer findMemberTotalCount();

    Integer findMemberCountAfterDate(String date);

    //分页查询会员信息
    public Page<Member> findPageMember(String queryString);

    //添加会员信息
    public void addMember(Member member);

    //根据ID查询会员信息
    public Member findMemberById(Integer id);

    //根据ID修改会员信息
    public void updateMemberById(Member member);

    //根据会员ID删除会员信息
    public void deleteMemberById(Integer id);

    List<Member> findAll();

    //查询当前会员的预约信息
    List<Map<String, Object>> findMemberOrderInfo(String startTime, String endTime, Integer memberId);

    //查询当前会员的预约详情
    Map<String, Object> findMemberOrderDetail(Integer orderId);

}
